<?php;
require_once 'C:\wamp\www\WEB\trunk\Projet_Web_2013_Client\Modele\BDDconnexion.php';
session_start();

class RQPanier extends BDDconnexion{
    
    public function select_article(){
        $i = 0;
        foreach ($_SESSION['panier'] As $tab){
            $rqt = "SELECT * FROM ARTICLE WHERE ID_ARTICLE = '" . $tab['ID_Article'] . "'";
            $res = $this->connexion()->query($rqt);
            $tabres[$i + 1] = $res->fetch();
            $tabres[$i + 1]["QuantiteC"] = $tab['Quantité'];
            
            $i++;
        }
        return $tabres;
    }
}
?>